package edu.sctu.practice.class02.liqing.test18;

/**
 * Created by 123456 on 2015/11/1.
 */
public class Auto {
    int number;
    String color;
    double weight;
    double speed;

    public Auto(int number, String color, double weight, double speed) {
        this.number = number;
        this.color = color;
        this.weight = weight;
        this.speed = speed;
    }

    public void Upspeed() {
        System.out.println("汽车能够加速");
    }

    public void Downspeed() {
        System.out.println("汽车能够减速");
    }

    public void Stopspeed() {
        System.out.println("汽车能够停止");
    }
    public void getinfo(){
        System.out.println("轮胎："+number+""+"颜色："+color+""+"重量："+""+"速度："+speed);
    }
}
